<script>
function passwordChanged(json) {
	DWZ.ajaxDone(json);
	console.log(json)
	if (json[DWZ.keys.statusCode] == DWZ.statusCode.ok) {
		$.pdialog.closeCurrent();
		alertMsg.correct('密码修改成功，请重新登陆！', {
			okCall: function() {
				location.reload(false);
			}
		});
		// ajax 发送登出请求
		$.get($('#header .loginOut', $(document)).attr('href'));
	}
}
</script>
<div class="pageContent">
	<form method="post" action="${rc.getContextPath()}/manage/management/savePwd" class="pageForm required-validate" onsubmit="return validateCallback(this, passwordChanged)">
		<div class="pageFormContent" layoutH="58">
			<div class="unit">
				<label>旧密码：</label> <input type="password" id="oldPassword"
					name="password" size="30" minlength="8" maxlength="20"
					class="required" />
			</div>
			<div class="unit">
				<label>新密码：</label> <input type="password" id="newPassword"
					name="newPassword" size="30" minlength="8" maxlength="20"
					class="required alphanumeric" />
			</div>
			<div class="unit">
				<label>重复输入新密码：</label> <input type="password" name="rnewPassword"
					size="30" equalTo="#newPassword" class="required alphanumeric" />
			</div>
		</div>
		<div class="formBar">
			<ul>
				<li>
					<div class="buttonActive">
						<div class="buttonContent">
							<button type="submit">确定</button>
						</div>
					</div>
				</li>
				<li>
					<div class="buttonActiveGrey">
						<div class="buttonContent">
							<button type="button" class="close">取消</button>
						</div>
					</div>
				</li>
			</ul>
		</div>
	</form>
</div>


